package com.kakarote.job.admin;

import com.kakarote.core.feign.admin.service.AdminService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


/**
 * 企业续费系统提醒job
 */
@Component
@Slf4j
public class AdminCompanyPaymentNoticeJob {

    @Autowired
    AdminService adminService;


    @XxlJob("AdminCompanyPaymentNoticeJob")
    public ReturnT<String> adminCompanyPaymentNotice(String param) {
        adminService.handleCompanyPaymentNotice();
        return ReturnT.SUCCESS;
    }

}
